

package com.jf.cloud.auth.vo;

import com.jf.cloud.api.auth.vo.TokenInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;

/**
 * token和tempUid
 *
 * @author zz
 * @date 2022/09/06
 */
public class TokenWithTempUidVO {


    @NotBlank
    @Schema(description = "临时的uid，微信公众号支付需要openid，但用户又不绑定社交账号，所以这个openId是临时的" )
    private String tempUid;

    @NotBlank
    @Schema(description = "小程序通过getPhoneNumber方法获取的code" )
    private TokenInfoVO tokenInfo;

    public TokenWithTempUidVO(String tempUid, TokenInfoVO tokenInfo) {
        this.tempUid = tempUid;
        this.tokenInfo = tokenInfo;
    }

    public TokenWithTempUidVO() {
    }

    public String getTempUid() {
        return tempUid;
    }

    public void setTempUid(String tempUid) {
        this.tempUid = tempUid;
    }

    public TokenInfoVO getTokenInfo() {
        return tokenInfo;
    }

    public void setTokenInfo(TokenInfoVO tokenInfo) {
        this.tokenInfo = tokenInfo;
    }

    @Override
    public String toString() {
        return "TokenWithTempUidVO{" +
                "tempUid='" + tempUid + '\'' +
                ", tokenInfo=" + tokenInfo +
                '}';
    }
}